#ifndef __LCBUTTONVIEW_H__
#define __LCBUTTONVIEW_H__

#include <string>

#include <DXImageView.h>

class MRect;
class DX;
class IObserver;

class DXButtonView : public DXImageView
{
public:
	DXButtonView( MRect rect, DXImage* image, DXImage* rollOverImage, std::wstring actionName );
	~DXButtonView( );

	void			track( bool isTrackOn );
	void			leftMouseDown( const IEvent& event );
	void			setVisible( bool visible );

	void			update();

	IObserver*		pressAction;

#ifdef _DEBUG
	//std::wstring	description();
#endif

private:
	std::wstring	_actionName;
	DXImage*		_dupImage;
	DXImage*		_rollOverImage;
};

#endif